<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
   
<h:head>
<link href="../resources/css/user.css" rel="stylesheet" type="text/css" />
</h:head>

<h:body>
<div class="contenitore">
 		<div class="riga">
  			<div class="colonna-1">
  				<ui:include src="../webApp/headerUtente.xhtml" />	
  				
  				
  			</div>
 		</div>
 		
 		<div class="riga">
  			<div class="colonna-2-1">
  				<div id="standard">
  				   <div> </div>
  					<!-- <ui:include src="../webApp/ricercaPacchetti.xhtml" />-->
   				</div>
  			</div>
  			<div class="colonna-2-2">
  				<div id="packagecustomdescription">
  				    
  				       <h:panelGrid columns="1" cellpadding="5">	
    				 	  <h:outputText id="nome"  value="Nome:#{infopackComprati.packcustombyid.nome}" />
					      <h:outputText id="citta" value="Città: #{infopackComprati.packcustombyid.citta}" />
					      <h:outputText id="desc"  value="Descrizione: #{infopackComprati.packcustombyid.descrizione}" />
					      <h:outputText id="prez"  value="Prezzo Pacchetto: #{infopackComprati.packcustombyid.prezzo}" />
				      </h:panelGrid> 
				       <h:panelGrid columns="4" cellpadding="5">	
    				 	  <h:outputText id="hnome"  value="Nome: #{infopackComprati.hotelcustom.name}" />
					      <h:outputText id="hdescrizione" value="Descrizione: #{infopackComprati.hotelcustom.description}" />
					      <h:outputText id="hind"  value="Indirizzo: #{infopackComprati.hotelcustom.indirizzo}" />
					      <h:outputText id="hstelle"  value="N° Stelle: #{infopackComprati.hotelcustom.stelle}" />
				      </h:panelGrid> 
				       <h:panelGrid columns="5" cellpadding="4">	
    				 	  <h:outputText id="tanome"  value="Nome:#{infopackComprati.voloandatacustom.nome}" />
					      <h:outputText id="tadescrizione" value=":Città Partenza #{infopackComprati.voloandatacustom.cittaPartenza}" />
					      <h:outputText id="taind"  value="Data Partenza: #{infopackComprati.voloandatacustom.dataPartenza}" >
					         <f:convertDateTime pattern="dd/MM/yyyy" />
					       </h:outputText>
					      <h:outputText id="tastelle"  value="Città Arrivo: #{infopackComprati.voloandatacustom.cittaArrivo}" />
					      <h:outputText id="ta"  value="Prezzo: #{infopackComprati.voloandatacustom.prezzo}" />
				      </h:panelGrid> 
				       <h:panelGrid columns="5" cellpadding="4">	
    				 	   <h:outputText id="trnome"  value="Nome:#{infopackComprati.voloritornocustom.nome}" />
					      <h:outputText id="trdescrizione" value=":Città Partenza #{infopackComprati.voloritornocustom.cittaPartenza}" />
					      <h:outputText id="trind"  value="Data Partenza: #{infopackComprati.voloritornocustom.dataPartenza}" >
					      <f:convertDateTime pattern="dd/MM/yyyy" />
					       </h:outputText>
					      <h:outputText id="trstelle"  value="Città Arrivo: #{infopackComprati.voloritornocustom.cittaArrivo}" />
					      <h:outputText id="tr"  value="Prezzo: #{infopackComprati.voloritornocustom.prezzo}" />
				      </h:panelGrid> 
				   
		         </div>
		     </div>
  			<!-- //////////////////////////  Tabella per visualizzazione dei pacchetti personali ///////////////////    -->
  		
  			<div class="colonna-2-3">
  
  	          
  	            <h:form>  
					<p:dataTable value="#{risultatiPacchettoBean.show()}" var="o" >  
       				     <p:column headerText=" Pacchetti "> 
       				        <p:commandButton id="ajax" value="#{o.nome}" action="#{infopackComprati.outcome()}" >
       				            <f:param name="action" value="#{o.id}" />
       				        </p:commandButton>
		                  </p:column>  
        		     </p:dataTable>
        	     </h:form>
        	
  			</div>
 		</div>
	</div>



</h:body>
</html>


